package com.soboot.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.soboot.system.entity.SysUser;
import com.soboot.system.model.QueryUserListReqModel;
import com.soboot.system.vo.QueryUserListVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;



/**
 * @Author:
 * @createTime: 2022年09月20日 18:09:43
 * @version:
 * @Description: 用户信息mapper
 * @Copyright:
 */
@Repository
public interface SysUserMapper extends BaseMapper<SysUser> {

    IPage<QueryUserListVO> queryUserList(@Param("page") Page<QueryUserListVO> page, @Param("param") QueryUserListReqModel queryUserListReqModel);

    QueryUserListVO querySysUser(@Param("account") String account, @Param("password") String password);

    SysUser queryUserWithRole(Integer userId);
}
